<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SWM34S_LVGL7.11_SWMUI: C:/Users/DELL/Desktop/Commit/lvgl/SWM34S_LVGL7.11_SWMUI_20230515/APP/BSP/dev_dac.h 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SWM34S_LVGL7.11_SWMUI<span id="projectnumber">&#160;V7.9</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.5 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_0ca16891106f5a3e9ad635a0d6c5f98f.html">APP</a></li><li class="navelem"><a class="el" href="dir_4ca18d753a70f6eada20fde478bd3fc8.html">BSP</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">宏定义</a> &#124;
<a href="#func-members">函数</a> &#124;
<a href="#var-members">变量</a>  </div>
  <div class="headertitle"><div class="title">dev_dac.h 文件参考</div></div>
</div><!--header-->
<div class="contents">

<p>DAC 音频播放  
<a href="#details">更多...</a></p>
<div class="textblock"><code>#include &quot;SWM341.h&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
dev_dac.h 的引用(Include)关系图:</div>
<div class="dyncontent">
<div class="center"><img src="dev__dac_8h__incl.png" border="0" usemap="#a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_b_s_p_2dev__dac_8h" alt=""/></div>
<map name="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_b_s_p_2dev__dac_8h" id="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_b_s_p_2dev__dac_8h">
<area shape="rect" title="DAC 音频播放" alt="" coords="5,5,267,60"/>
<area shape="rect" title=" " alt="" coords="93,108,179,133"/>
</map>
</div>
</div><div class="textblock"><div class="dynheader">
此图展示该文件直接或间接的被哪些文件引用了:</div>
<div class="dyncontent">
<div class="center"><img src="dev__dac_8h__dep__incl.png" border="0" usemap="#a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_b_s_p_2dev__dac_8hdep" alt=""/></div>
<map name="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_b_s_p_2dev__dac_8hdep" id="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_b_s_p_2dev__dac_8hdep">
<area shape="rect" title="DAC 音频播放" alt="" coords="1155,5,1416,60"/>
<area shape="rect" href="bsp__init_8h.html" title="板级硬件外设初始化" alt="" coords="1015,108,1273,163"/>
<area shape="rect" href="dev__dac_8c.html" title="DAC 音频播放" alt="" coords="1297,108,1559,163"/>
<area shape="rect" href="bsp__init_8c.html" title="板级硬件外设初始化" alt="" coords="5,218,264,273"/>
<area shape="rect" href="_flash_disk_8c.html" title="管理片外 SPI―Flash 的读写, 对接 FATFS 组件" alt="" coords="288,211,512,280"/>
<area shape="rect" href="load__mv_8c.html" title="播放 avi / wav 音视频" alt="" coords="536,211,760,280"/>
<area shape="rect" href="power__manager_8c.html" title=" " alt="" coords="784,211,1008,280"/>
<area shape="rect" href="userboot_8c.html" title="IAP 实现 UserBoot 功能" alt="" coords="1032,211,1256,280"/>
<area shape="rect" href="ui__boot_8c.html" title="开机动画/视频页, 挂载文件系统完成主页素材的导入" alt="" coords="1281,218,1522,273"/>
<area shape="rect" href="ui__update_8c.html" title="启动引导更新页, 挂载文件系统实现 UI 素材导入/更新(可选模块)" alt="" coords="1547,211,1765,280"/>
<area shape="rect" href="_mass_storage_8c.html" title=" " alt="" coords="1790,211,2031,280"/>
<area shape="rect" href="main_8c.html" title="主程序" alt="" coords="2056,218,2275,273"/>
</map>
</div>
</div>
<p><a href="dev__dac_8h_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:a5cf167f3b1930852accd27d796f47195"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dev__dac_8h.html#a5cf167f3b1930852accd27d796f47195">DAC_DMA_CHN</a>&#160;&#160;&#160;DMA_CH0</td></tr>
<tr class="separator:a5cf167f3b1930852accd27d796f47195"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:ab18d2dbe4e762641f948bc31b52234f4"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dev__dac_8h.html#ab18d2dbe4e762641f948bc31b52234f4">dac_dma_transfer_done</a> (void)</td></tr>
<tr class="memdesc:ab18d2dbe4e762641f948bc31b52234f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">DAC DMA 判断是否传输完成  <a href="dev__dac_8h.html#ab18d2dbe4e762641f948bc31b52234f4">更多...</a><br /></td></tr>
<tr class="separator:ab18d2dbe4e762641f948bc31b52234f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab3eb615ca98a910e727b600de131c18"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dev__dac_8h.html#aab3eb615ca98a910e727b600de131c18">dac_port_init</a> (void)</td></tr>
<tr class="memdesc:aab3eb615ca98a910e727b600de131c18"><td class="mdescLeft">&#160;</td><td class="mdescRight">配置 DAC 驱动端口以及功放静音控制脚, 开启声音  <a href="dev__dac_8h.html#aab3eb615ca98a910e727b600de131c18">更多...</a><br /></td></tr>
<tr class="separator:aab3eb615ca98a910e727b600de131c18"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6564f4952cc109138c86b644e9585d9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dev__dac_8h.html#ae6564f4952cc109138c86b644e9585d9">dac_port_deinit</a> (void)</td></tr>
<tr class="memdesc:ae6564f4952cc109138c86b644e9585d9"><td class="mdescLeft">&#160;</td><td class="mdescRight">恢复 DAC 驱动端口以及功放静音控制脚的默认状态, 使能静音  <a href="dev__dac_8h.html#ae6564f4952cc109138c86b644e9585d9">更多...</a><br /></td></tr>
<tr class="separator:ae6564f4952cc109138c86b644e9585d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e622fafee8436bf9cf9f6b120352e3c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dev__dac_8h.html#a6e622fafee8436bf9cf9f6b120352e3c">dac_init</a> (void)</td></tr>
<tr class="memdesc:a6e622fafee8436bf9cf9f6b120352e3c"><td class="mdescLeft">&#160;</td><td class="mdescRight">初始化 DAC 模块  <a href="dev__dac_8h.html#a6e622fafee8436bf9cf9f6b120352e3c">更多...</a><br /></td></tr>
<tr class="separator:a6e622fafee8436bf9cf9f6b120352e3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1cbb394145c7d8b7a7d17fc24a2d6406"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dev__dac_8h.html#a1cbb394145c7d8b7a7d17fc24a2d6406">dac_dma_init</a> (uint16_t *addr, uint32_t count, uint32_t frequency)</td></tr>
<tr class="memdesc:a1cbb394145c7d8b7a7d17fc24a2d6406"><td class="mdescLeft">&#160;</td><td class="mdescRight">DAC_DMA 配置, 采用 TIMR 触发 DMA 步进传输  <a href="dev__dac_8h.html#a1cbb394145c7d8b7a7d17fc24a2d6406">更多...</a><br /></td></tr>
<tr class="separator:a1cbb394145c7d8b7a7d17fc24a2d6406"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7274a6adbc1a4a9f5a2f27be8d1225e4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dev__dac_8h.html#a7274a6adbc1a4a9f5a2f27be8d1225e4">dac_dma_deinit</a> (void)</td></tr>
<tr class="memdesc:a7274a6adbc1a4a9f5a2f27be8d1225e4"><td class="mdescLeft">&#160;</td><td class="mdescRight">DAC_DMA 配置恢复初始默认状态  <a href="dev__dac_8h.html#a7274a6adbc1a4a9f5a2f27be8d1225e4">更多...</a><br /></td></tr>
<tr class="separator:a7274a6adbc1a4a9f5a2f27be8d1225e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="var-members" name="var-members"></a>
变量</h2></td></tr>
<tr class="memitem:aae6320f87b86b6a56b02cf050eb8a0b8"><td class="memItemLeft" align="right" valign="top">const uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dev__dac_8h.html#aae6320f87b86b6a56b02cf050eb8a0b8">Sin_Data</a> [100]</td></tr>
<tr class="memdesc:aae6320f87b86b6a56b02cf050eb8a0b8"><td class="mdescLeft">&#160;</td><td class="mdescRight">正弦波音频 - DAC 测试  <a href="dev__dac_8h.html#aae6320f87b86b6a56b02cf050eb8a0b8">更多...</a><br /></td></tr>
<tr class="separator:aae6320f87b86b6a56b02cf050eb8a0b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p >DAC 音频播放 </p>
<p >/ </p><dl class="section since"><dt>自从</dt><dd>Change Logs: Date Author Notes 2022-12-08 lzh the first version </dd></dl>
<dl class="section remark"><dt>备注</dt><dd>/</dd></dl>
<dl class="section attention"><dt>注意</dt><dd></dd></dl>
<p>THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, SYNWIT SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONN- -ECTION WITH THEIR PRODUCTS.</p>
<dl class="section copyright"><dt>版权所有</dt><dd>2012 Synwit Technology </dd></dl>

<p class="definition">在文件 <a class="el" href="dev__dac_8h_source.html">dev_dac.h</a> 中定义.</p>
</div><h2 class="groupheader">宏定义说明</h2>
<a id="a5cf167f3b1930852accd27d796f47195" name="a5cf167f3b1930852accd27d796f47195"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5cf167f3b1930852accd27d796f47195">&#9670;&#160;</a></span>DAC_DMA_CHN</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define DAC_DMA_CHN&#160;&#160;&#160;DMA_CH0</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="dev__dac_8h_source.html">dev_dac.h</a> 第 <a class="el" href="dev__dac_8h_source.html#l00028">28</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">函数说明</h2>
<a id="ab18d2dbe4e762641f948bc31b52234f4" name="ab18d2dbe4e762641f948bc31b52234f4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab18d2dbe4e762641f948bc31b52234f4">&#9670;&#160;</a></span>dac_dma_transfer_done()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t dac_dma_transfer_done </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>DAC DMA 判断是否传输完成 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">/</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">0</td><td>: 传输完成 1 : 未完成/未开启传输 </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="dev__dac_8c_source.html">dev_dac.c</a> 第 <a class="el" href="dev__dac_8c_source.html#l00106">106</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="dev__dac_8h_ab18d2dbe4e762641f948bc31b52234f4_icgraph.png" border="0" usemap="#adev__dac_8h_ab18d2dbe4e762641f948bc31b52234f4_icgraph" alt=""/></div>
<map name="adev__dac_8h_ab18d2dbe4e762641f948bc31b52234f4_icgraph" id="adev__dac_8h_ab18d2dbe4e762641f948bc31b52234f4_icgraph">
<area shape="rect" title="DAC DMA 判断是否传输完成" alt="" coords="167,31,327,56"/>
<area shape="rect" href="load__mv_8c.html#a3a29f68f2d856a9c2eea3a328d5233e8" title="解码 avi 视频播放" alt="" coords="9,5,115,31"/>
<area shape="rect" href="load__mv_8c.html#ade87c0786f4382f3e221f3a79cef3a01" title="解码 wav 音频播放" alt="" coords="5,55,119,80"/>
</map>
</div>

</div>
</div>
<a id="aab3eb615ca98a910e727b600de131c18" name="aab3eb615ca98a910e727b600de131c18"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aab3eb615ca98a910e727b600de131c18">&#9670;&#160;</a></span>dac_port_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void dac_port_init </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>配置 DAC 驱动端口以及功放静音控制脚, 开启声音 </p>

<p class="definition">在文件 <a class="el" href="dev__dac_8c_source.html">dev_dac.c</a> 第 <a class="el" href="dev__dac_8c_source.html#l00119">119</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="dev__dac_8h_aab3eb615ca98a910e727b600de131c18_icgraph.png" border="0" usemap="#adev__dac_8h_aab3eb615ca98a910e727b600de131c18_icgraph" alt=""/></div>
<map name="adev__dac_8h_aab3eb615ca98a910e727b600de131c18_icgraph" id="adev__dac_8h_aab3eb615ca98a910e727b600de131c18_icgraph">
<area shape="rect" title="配置 DAC 驱动端口以及功放静音控制脚, 开启声音" alt="" coords="417,31,513,56"/>
<area shape="rect" href="dev__dac_8c.html#a6e622fafee8436bf9cf9f6b120352e3c" title="初始化 DAC 模块" alt="" coords="261,5,327,31"/>
<area shape="rect" href="power__manager_8c.html#a0607f7307b006db734b10c8b94bb909e" title="退出睡眠模式后的环境恢复" alt="" coords="219,55,369,80"/>
<area shape="rect" href="bsp__init_8c.html#ac1d41f544770121f1cb61aeb64e5807e" title="初始化所有的硬件设备, 该函数配置CPU寄存器和外设的寄存器并初始化一些全局变量(只需要调用一次)" alt="" coords="104,5,171,31"/>
<area shape="rect" href="main_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="C_Main" alt="" coords="5,5,56,31"/>
</map>
</div>

</div>
</div>
<a id="ae6564f4952cc109138c86b644e9585d9" name="ae6564f4952cc109138c86b644e9585d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae6564f4952cc109138c86b644e9585d9">&#9670;&#160;</a></span>dac_port_deinit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void dac_port_deinit </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>恢复 DAC 驱动端口以及功放静音控制脚的默认状态, 使能静音 </p>

<p class="definition">在文件 <a class="el" href="dev__dac_8c_source.html">dev_dac.c</a> 第 <a class="el" href="dev__dac_8c_source.html#l00133">133</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="dev__dac_8h_ae6564f4952cc109138c86b644e9585d9_icgraph.png" border="0" usemap="#adev__dac_8h_ae6564f4952cc109138c86b644e9585d9_icgraph" alt=""/></div>
<map name="adev__dac_8h_ae6564f4952cc109138c86b644e9585d9_icgraph" id="adev__dac_8h_ae6564f4952cc109138c86b644e9585d9_icgraph">
<area shape="rect" title="恢复 DAC 驱动端口以及功放静音控制脚的默认状态, 使能静音" alt="" coords="195,5,305,31"/>
<area shape="rect" href="power__manager_8c.html#ab9c5028de96a56cb56cd352d70cf1b87" title="进入睡眠模式前的环境清理" alt="" coords="5,5,147,31"/>
</map>
</div>

</div>
</div>
<a id="a6e622fafee8436bf9cf9f6b120352e3c" name="a6e622fafee8436bf9cf9f6b120352e3c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6e622fafee8436bf9cf9f6b120352e3c">&#9670;&#160;</a></span>dac_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void dac_init </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>初始化 DAC 模块 </p>

<p class="definition">在文件 <a class="el" href="dev__dac_8c_source.html">dev_dac.c</a> 第 <a class="el" href="dev__dac_8c_source.html#l00148">148</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="dev__dac_8h_a6e622fafee8436bf9cf9f6b120352e3c_cgraph.png" border="0" usemap="#adev__dac_8h_a6e622fafee8436bf9cf9f6b120352e3c_cgraph" alt=""/></div>
<map name="adev__dac_8h_a6e622fafee8436bf9cf9f6b120352e3c_cgraph" id="adev__dac_8h_a6e622fafee8436bf9cf9f6b120352e3c_cgraph">
<area shape="rect" title="初始化 DAC 模块" alt="" coords="5,5,72,31"/>
<area shape="rect" href="dev__dac_8c.html#aab3eb615ca98a910e727b600de131c18" title="配置 DAC 驱动端口以及功放静音控制脚, 开启声音" alt="" coords="120,5,216,31"/>
</map>
</div>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="dev__dac_8h_a6e622fafee8436bf9cf9f6b120352e3c_icgraph.png" border="0" usemap="#adev__dac_8h_a6e622fafee8436bf9cf9f6b120352e3c_icgraph" alt=""/></div>
<map name="adev__dac_8h_a6e622fafee8436bf9cf9f6b120352e3c_icgraph" id="adev__dac_8h_a6e622fafee8436bf9cf9f6b120352e3c_icgraph">
<area shape="rect" title="初始化 DAC 模块" alt="" coords="219,5,285,31"/>
<area shape="rect" href="bsp__init_8c.html#ac1d41f544770121f1cb61aeb64e5807e" title="初始化所有的硬件设备, 该函数配置CPU寄存器和外设的寄存器并初始化一些全局变量(只需要调用一次)" alt="" coords="104,5,171,31"/>
<area shape="rect" href="main_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="C_Main" alt="" coords="5,5,56,31"/>
</map>
</div>

</div>
</div>
<a id="a1cbb394145c7d8b7a7d17fc24a2d6406" name="a1cbb394145c7d8b7a7d17fc24a2d6406"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1cbb394145c7d8b7a7d17fc24a2d6406">&#9670;&#160;</a></span>dac_dma_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void dac_dma_init </td>
          <td>(</td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>count</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>frequency</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>DAC_DMA 配置, 采用 TIMR 触发 DMA 步进传输 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">addr</td><td>: 数据源地址 (uint16_t *) </td></tr>
    <tr><td class="paramname">count</td><td>: 传输 Unit 个数 (/ 16bit) </td></tr>
    <tr><td class="paramname">frequency</td><td>: 音频采样率 (/ Hz) </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">/</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>注解</dt><dd>DMA 配置为外部 trigger 信号启动时, DMA 其他通道不工作, 此问题只能尽量避让绕开应用 而 DMA 配置为 源侧/目标侧 外设 握手信号不会导致此问题. </dd></dl>

<p class="definition">在文件 <a class="el" href="dev__dac_8c_source.html">dev_dac.c</a> 第 <a class="el" href="dev__dac_8c_source.html#l00169">169</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="dev__dac_8h_a1cbb394145c7d8b7a7d17fc24a2d6406_icgraph.png" border="0" usemap="#adev__dac_8h_a1cbb394145c7d8b7a7d17fc24a2d6406_icgraph" alt=""/></div>
<map name="adev__dac_8h_a1cbb394145c7d8b7a7d17fc24a2d6406_icgraph" id="adev__dac_8h_a1cbb394145c7d8b7a7d17fc24a2d6406_icgraph">
<area shape="rect" title="DAC_DMA 配置, 采用 TIMR 触发 DMA 步进传输" alt="" coords="160,31,259,56"/>
<area shape="rect" href="load__mv_8c.html#a904f1d788d926c7864c948c4f9d1c66f" title="解析 avi 视频源" alt="" coords="8,5,109,31"/>
<area shape="rect" href="load__mv_8c.html#a0beb39d84c085c9baadb8a933edf1e53" title="解析 wav 音频源" alt="" coords="5,55,112,80"/>
</map>
</div>

</div>
</div>
<a id="a7274a6adbc1a4a9f5a2f27be8d1225e4" name="a7274a6adbc1a4a9f5a2f27be8d1225e4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7274a6adbc1a4a9f5a2f27be8d1225e4">&#9670;&#160;</a></span>dac_dma_deinit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void dac_dma_deinit </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>DAC_DMA 配置恢复初始默认状态 </p>

<p class="definition">在文件 <a class="el" href="dev__dac_8c_source.html">dev_dac.c</a> 第 <a class="el" href="dev__dac_8c_source.html#l00198">198</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="dev__dac_8h_a7274a6adbc1a4a9f5a2f27be8d1225e4_icgraph.png" border="0" usemap="#adev__dac_8h_a7274a6adbc1a4a9f5a2f27be8d1225e4_icgraph" alt=""/></div>
<map name="adev__dac_8h_a7274a6adbc1a4a9f5a2f27be8d1225e4_icgraph" id="adev__dac_8h_a7274a6adbc1a4a9f5a2f27be8d1225e4_icgraph">
<area shape="rect" title="DAC_DMA 配置恢复初始默认状态" alt="" coords="317,31,431,56"/>
<area shape="rect" href="load__mv_8c.html#a978ed993bd878f76db92c810771c0ee8" title="关闭 avi 视频, 并释放所占用的资源" alt="" coords="170,5,266,31"/>
<area shape="rect" href="load__mv_8c.html#a79e1ebe637dcb48c69706eb81c73b576" title="关闭 wav 音频, 并释放所占用的资源" alt="" coords="167,55,269,80"/>
<area shape="rect" href="load__mv_8c.html#a3a29f68f2d856a9c2eea3a328d5233e8" title="解码 avi 视频播放" alt="" coords="9,5,115,31"/>
<area shape="rect" href="load__mv_8c.html#ade87c0786f4382f3e221f3a79cef3a01" title="解码 wav 音频播放" alt="" coords="5,55,119,80"/>
</map>
</div>

</div>
</div>
<h2 class="groupheader">变量说明</h2>
<a id="aae6320f87b86b6a56b02cf050eb8a0b8" name="aae6320f87b86b6a56b02cf050eb8a0b8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aae6320f87b86b6a56b02cf050eb8a0b8">&#9670;&#160;</a></span>Sin_Data</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const uint16_t Sin_Data[100]</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">extern</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>正弦波音频 - DAC 测试 </p>

<p class="definition">在文件 <a class="el" href="dev__dac_8c_source.html">dev_dac.c</a> 第 <a class="el" href="dev__dac_8c_source.html#l00059">59</a> 行定义.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>
